<!-- SPDX-License-Identifier: MIT -->

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
  {%- block extrahead %} {% endblock %}
  <link rel="stylesheet" href="{{ pathto('_static/icons.css', 1)|e }}" type="text/css" />
  {%- block css %}
  {%- for css in css_files %}
    {%- if css|attr("filename") %}
  {{ css_tag(css) }}
    {%- else %}
  <link rel="stylesheet" href="{{ pathto(css, 1)|e }}" type="text/css" />
    {%- endif %}
  {%- endfor %}
  {%- endblock %}
  <link rel="stylesheet" href="{{ pathto('_static/style.css', 1)|e }}" type="text/css" />
  <link rel="stylesheet" href="{{ pathto('_static/codeblocks.css', 1) }}" type="text/css" />
  {%- block scripts %}
  <script id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
  {% if ("/" + pagename).endswith("/api") %}
    <meta name="robots" content="noindex" />
    <script type="text/javascript" src="{{ pathto('_static/api_redirect.js', 1) }}"></script>
  {% endif %}
  {%- for js in script_files %}
  {{ js_tag(js) }}
  {%- endfor %}
  {%- endblock %}
  {%- if pageurl %}
  <link rel="canonical" href="{{ pageurl|e }}" />
  {%- endif %}
  {%- if use_opensearch %}
  <link rel="search" type="application/opensearchdescription+xml"
        title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
        href="{{ pathto('_static/opensearch.xml', 1) }}"/>
  {%- endif %}
  {%- if favicon_url %}
  <link rel="icon" href="{{ favicon_url|e }}"/>
  {%- endif %}
  {%- block linktags %}
  {%- if hasdoc('about') %}
  <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
  {%- endif %}
  {%- if hasdoc('genindex') %}
  <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
  {%- endif %}
  {%- if hasdoc('search') %}
  <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
  {%- endif %}
  {%- if hasdoc('copyright') %}
  <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
  {%- endif %}
  {%- if next %}
  <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
  {%- endif %}
  {%- if prev %}
  <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
  {%- endif %}
  {%- endblock %}
</head>
<body{% if not display_toc %} class="small-toc"{% endif %}>
{%- block header %}{% endblock %}
  <div class="main">
    {#- The main navigation header #}
    <a id="hamburger-toggle" title="mobile-toc"><span class="material-icons">menu</span></a>
    <header class="top-header mobile">
      <nav>
          <div class="header-breakpoint">
        <a href="{{ pathto('api/index')|e }}" class="extension-nav">API Reference</a>
        {%- for ext, p in discord_extensions %}
          {% set ext_name = ext.split('.') %}
        <a href="{{ pathto(p + '/index')|e }}" class="extension-nav {% if pagename.startswith(p) %}current-page{% endif %}">{{ ext_name[-1] }}</a>
        {%- endfor %}
        </div>
      </nav>
    </header>
    <header class="sticky-header">
      <nav>
        <a href="{{ pathto(root_doc)|e }}" class="main-heading desktop">
          <img class="disnake-main-logo" src="{{ pathto('_static/disnake.svg', 1)|e }}" alt="disnake">
        </a>
        <div class="header-breakpoint desktop extension-breakpoint desktop">
          <a href="{{ pathto('api/index')|e }}" class="extension-nav">{{ _('API Reference') }}</a>
          {%- for ext, p in discord_extensions %}
          {% set ext_name = ext.split('.') %}
          <a href="{{ pathto(p + '/index')|e }}" class="extension-nav {% if pagename.startswith(p) %}current-page{% endif %}">{{ ext_name[-1] }}</a>
          {%- endfor %}
        </div>
        <div class="header-breakpoint search-breakpoint">
          <form role="search" class="search" action="{{ pathto('search') }}" method="get">
            <div class="search-wrapper">
              <input type="search" name="q" placeholder="{{ _('Search documentation') }}" placeholder-mobile="{{ _('Search') }}" placeholder-desktop="{{ _('Search documentation') }}" title="Keyboard Shortcuts: &quot;/&quot;, &quot;s&quot;, &quot;ctrl+k&quot;" />
              <button type="submit">
                <span class="material-icons">search</span>
              </button>
            </div>
          </form>
          <a href="https://github.com/DisnakeDev/disnake" title="GitHub"><span class="material-icons custom-icons">github</span></a>
          <a href="{{ discord_invite }}" title="{{ _('Discord') }}"><span class="material-icons custom-icons">discord</span></a>
          <a href="{{ pathto('faq') }}" title="FAQ"><span class="material-icons">help_center</span></a>
          <div id="dark-mode-switch" class="">
              <div class="switch-outer"></div>
              <div class="switch-inner"></div>
              <span class="material-icons theme-icon light">light_mode</span>
              <div class="knob"></div>
              <span class="material-icons theme-icon dark">dark_mode</span>
          </div>
          {#- If we have more links we can put them here #}
        </div>
      </nav>
    </header>
    {#- The sidebar component #}
<aside>
  <a href="{{ pathto(root_doc)|e }}" class="mobile-heading">
    <img class="disnake-mobile-logo" src="{{ pathto('_static/disnake.svg', 1)|e }}" alt="disnake">
  </a>
  <div class="sidebar-extension-list mobile-heading">
    <a href="{{ pathto('api/index')|e }}" class="extension-nav">API Reference</a>
    {%- for ext, p in discord_extensions %}
    {% set ext_name = ext.split('.') %}
    <a href="{{ pathto(p + '/index')|e }}" class="extension-nav {% if pagename.startswith(p) %}current-page{% endif %}">{{ ext_name[-1] }}</a>
    {%- endfor %}
  </div>
  <div id="sidebar">
    {% if 'api' in pagename.split('/') %}
    <div class="sidebar-search-wrapper">
      <input type="text" id="sidebar-search-box" onkeyup="sidebarSearch()" placeholder="Filter..." autocomplete=off>
    </div>
    {% endif %}
    {%- include "localtoc.html" %}
  </div>
</aside>

    {#- The actual body of the contents #}
    <main role="main">
      {% block body %} {% endblock %}
    </main>
{%- block footer %}
    <footer>
    {%- if show_copyright %}
      {%- if hasdoc('copyright') %}
        {% trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
      {%- else %}
        {% trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.{% endtrans %}
      {%- endif %}
    {%- endif %}
    {%- if last_updated %}
      {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
    {%- endif %}
    {%- if show_sphinx %}
      {% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
    {%- endif %}
    </footer>
{%- endblock %}
  </div>
  {%- if READTHEDOCS %}
  <script>
    if (typeof READTHEDOCS_DATA !== "undefined") {
        if (!READTHEDOCS_DATA.features) {
          READTHEDOCS_DATA.features = {};
        }
        READTHEDOCS_DATA.features.docsearch_disabled = true;
      }
  </script>
  {%- endif %}

  <div id="to-top" onclick="scrollToTop()"{%- if READTHEDOCS %} class="is-rtd"{%- endif %} hidden>
    <span><span class="material-icons">arrow_upward</span> to top</span>
  </div>

</body>
</html>
